﻿namespace Samples.Application.Controllers
{
    using System.Web.Mvc;
    using System.Web.Hosting;
    using System;

    public class HomeController : Controller
    {
        public ActionResult Index(string id)
        {
            var file = HostingEnvironment.VirtualPathProvider.GetFile("~/123.css");

            var hash = HostingEnvironment.VirtualPathProvider.GetFileHash("~/123.css", new string[] { "~/123.css" });
            
            var dependency = HostingEnvironment.VirtualPathProvider.GetCacheDependency(
                "~/123.css", new string[] { "~/123.css" }, DateTime.UtcNow);

            return this.View();
        }
    }
}
